Delete the named alert trigger for the specified database.
URL Parameters | |
---|---|
format | The format of the data in the response body.
Allowed values: html , json or xml (default). Use this
parameter to override the Accept header. |
Upon success, MarkLogic Server returns a status code 204 (No Content). If the trigger does not exist, a status code of 400 (Bad Request) is returned. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-admin
rolehttp://marklogic.com/xdmp/privileges/manage-admin
http://marklogic.com/xdmp/privileges/manage
http://marklogic.com/xdmp/privileges/create-trigger
and
http://marklogic.com/xdmp/privileges/manage
privilege, plus one of the following privileges:
http://marklogic.com/xdmp/privileges/admin/database
http://marklogic.com/xdmp/privileges/admin/database/database-ID
http://marklogic.com/xdmp/privileges/admin/database/triggers/database-ID
http://marklogic.com/xdmp/privileges/admin/database/database-name
http://marklogic.com/xdmp/privileges/admin/database/triggers/database-name
$ curl --anyauth --user user:password -X DELETE -i \ http://localhost:8002/manage/v2/databases/myTriggers/triggers/my-trigger ==> Deletes the alert trigger, "my-trigger," from the myTriggers database.